package org.example.java8;

/**
 * 接口1
 *
 * @author zhangpan
 * @since 2024/4/17 15:50
 */
public interface NewInterface {

    static void sm() {
        System.out.println("interface1 static方法1");
    }

    static void sm2() {
        System.out.println("interface1 static方法2");
    }

    default void def() {
        System.out.println("interface1 default方法1");
    }

    default void def2() {
        System.out.println("interface1 default方法2");
    }

    /**
     * 需要实现类重写
     */
    void f();
}
